import request from '@/utils/request'
export function fetchList(params) {
    return request({
        url: '/home/banner/list',
        method: 'get',
        params: params
    })
}
export function updateStatus(id, params) {
    return request({
        url: '/home/banner/update/status/' + id,
        method: 'post',
        params: params
    })
}
export function deleteHomeBanner(data) {
    return request({
        url: '/home/banner/delete',
        method: 'post',
        data: data
    })
}
export function createHomeBanner(data) {
    return request({
        url: '/home/banner/create',
        method: 'post',
        data: data
    })
}
export function getHomeBanner(id) {
    return request({
        url: '/home/banner/' + id,
        method: 'get',
    })
}

export function updateHomeBanner(id, data) {
    return request({
        url: '/home/banner/update/' + id,
        method: 'post',
        data: data
    })
}